package com.cykj.enterprise.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @BelongsProject: smart_recruit_backend
 * @BelongsPackage: com.cykj.enterprise.config
 * @Author: 小白糖糖
 * @CreateTime: 2025-09-04 15:20
 * @Description: TODO
 * @Version: 1.0
 */
@Configuration
public class StaticConfig implements WebMvcConfigurer {
    @Value("${fileUploadPath.localPath}")
    private String localPath;
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/static/**").addResourceLocations(localPath+"/");
    }
}
